package com.alibaba.dubbo.registry.common.domain;

/**
 * 指定应用的服务质量等级协定(SLA)对象。
 * @author lry
 */
public class Agreement extends Entity{

    private static final long serialVersionUID = -4888604682731513790L;
    
    private String service; //服务名
    private String consumerApplication; // 服务消费者应用名
    private long invocationQuantity; // 一天调用量
    private int tps; // TPS上限
    private int responseTime; // 响应时间，毫秒
    private double availability; // 可用率
    private String username; 

    public Agreement() { }
    public Agreement(Long id) {
        super(id);
    }
    
    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getConsumerApplication() {
        return consumerApplication;
    }

    public void setConsumerApplication(String consumerApplication) {
        this.consumerApplication = consumerApplication;
    }

    public long getInvocationQuantity() {
        return invocationQuantity;
    }

    public void setInvocationQuantity(long invocationQuantity) {
        this.invocationQuantity = invocationQuantity;
    }

    public int getTps() {
        return tps;
    }

    public void setTps(int tps) {
        this.tps = tps;
    }

    public int getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(int responseTime) {
        this.responseTime = responseTime;
    }

    public double getAvailability() {
        return availability;
    }

    public void setAvailability(double availability) {
        this.availability = availability;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
	
}
